home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
graphics
/
3dvect37.zip
/
SEQ.INC
< prev
next >
Wrap
Text File
|
1994-06-22
|
22KB
|
798 lines
;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
;
; Filename : sequence.inc
; Included from: Main.asm
; Description : Object and Sequence for that cheezy animation
;
; Written by: John McCarthy
; 1316 Redwood Lane
; Pickering, Ontario.
; Canada, Earth, Milky Way (for those out-of-towners)
; L1X 1C5
;
; Internet/Usenet: BRIAN.MCCARTHY@CANREM.COM
; Fidonet: Brian McCarthy 1:229/15
; RIME/Relaynet: ->CRS
;
; Home phone, (905) 831-1944, don't call at 2 am eh!
;
; John Mccarthy would really love to work for a company programming Robots
; or doing some high intensive CPU work. Hint. Hint.
;
; Send me your protected mode source code!
; Send me your Objects!
; But most of all, Send me a postcard!!!!
;
;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
;
bigoildrum dd -1
dd offset oil1 - offset $ - 4
oil1 dw 16
dw 9
dw 0,0,0,0,0,0,0,0
dw 17 dup (0)
dw 290,-350,-700 ; 1
dw 700,-350,-290 ; 2
dw 700,-350, 290 ; 3
dw 290,-350, 700 ; 4
dw -290,-350, 700 ; 5
dw -700,-350, 290 ; 6
dw -700,-350,-290 ; 7
dw -290,-350,-700 ; 8
dw 290, 350,-700 ; 9
dw 700, 350,-290 ;10
dw 700, 350, 290 ;11
dw 290, 350, 700 ;12
dw -290, 350, 700 ;13
dw -700, 350, 290 ;14
dw -700, 350,-290 ;15
dw -290, 350,-700 ;16
dw 0,0,0,16*2+ 6,0, 1,8,16,9,1
dw 0,0,0,16*2+ 8,0, 2,1,9,10,2
dw 0,0,0,16*2+10,0, 3,2,10,11,3
dw 0,0,0,16*2+12,0, 4,3,11,12,4
dw 0,0,0,16*2+14,0, 5,4,12,13,5
dw 0,0,0,16*2+11,0, 6,5,13,14,6
dw 0,0,0,16*2+ 9,0, 7,6,14,15,7
dw 0,0,0,16*2+ 7,0, 8,7,15,16,8
dw 0,0,0,16*2+15,0, 1,2,3,4,5,6,7,8,1
archmiddle dd -1
dd offset arch1 - offset $ - 4
arch1 dw 20
dw 10
dw 0,0,0,0,0,0,0,0
dw 17 dup (0)
dw 402, 240,-100 ; 1
dw 402, 240, 100 ; 2
dw 402,-240,-100 ; 3
dw 402,-240, 100 ; 4
dw -402,-240,-100 ; 5
dw -402,-240, 100 ; 6
dw -402, 240,-100 ; 7
dw -402, 240, 100 ; 8
dw -330, 100,-100 ; 9
dw -330, 100, 100 ; 10
dw -250, 50,-100 ; 11
dw -250, 50, 100 ; 12
dw -100, 0,-100 ; 13
dw -100, 0, 100 ; 14
dw 50, 50,-100 ; 15
dw 50, 50, 100 ; 16
dw 130, 100,-100 ; 17
dw 130, 100, 100 ; 18
dw 200, 240,-100 ; 19
dw 200, 240, 100 ; 20
dw iterate+onscr+check,0,0,0,0,1,3,5,7,1
dw 0
dw 6
dw 25 dup (0)
dw both,0,0,2,0 ,1,3,17,19,1
dw both,0,0,2,0 ,17,3,15,17
dw both,0,0,2,0 ,15,3,5,13,15
dw both,0,0,2,0 ,13,5,11,13
dw both,0,0,2,0 ,11,5,9,11
dw both,0,0,2,0 ,9,5,7,9
dw iterate+onscr+check,0,0,0,0,2,8,6,4,2
dw 0
dw 6
dw 0,0,0,0,0,0,0,1
dw 17 dup (0)
dw both,0,0,9,0 ,1,3,17,19,1
dw both,0,0,9,0 ,17,3,15,17
dw both,0,0,9,0 ,15,3,5,13,15
dw both,0,0,9,0 ,13,5,11,13
dw both,0,0,9,0 ,11,5,9,11
dw both,0,0,9,0 ,9,5,7,9
dw 0,0,0,10,0, 3,4,6,5,3
dw 0,0,0,3,0, 1,19,20,2,1
dw 0,0,0,7,0, 7,8,10,9,7
dw 0,0,0,6,0, 9,10,12,11,9
dw 0,0,0,5,0, 11,12,14,13,11
dw 0,0,0,4,0, 13,14,16,15,13
dw 0,0,0,3,0, 15,16,18,17,15
dw 0,0,0,2,0, 17,18,20,19,17
archnorden db 5,6,7,8,9,10,11,12,13,14,15
archsuden db 14,9,14,12,11,10,9,8,7,8,15
archocten db 7,14,14,12,11,10,9,8,7,8,15
archwesten db 8,14,7,8,9,10,11,12,13,8,15
archersten db 14,8,8,8,9,10,11,12,13,8,15
archmiddl6 dd -1
dd offset arch6 - offset $ - 4
arch6 dw 20
dw 10
dw 0,0,0,0,0,0,0,0
dw 17 dup (0)
dw -100, 240,-402; 1
dw 100, 240,-402; 2
dw -100,-240,-402; 3
dw 100,-240,-402; 4
dw -100,-240, 402; 5
dw 100,-240, 402; 6
dw -100, 240, 402; 7
dw 100, 240, 402; 8
dw -100, 100, 330; 9
dw 100, 100, 330; 10
dw -100, 50, 250; 11
dw 100, 50, 250; 12
dw -100, 0, 100; 13
dw 100, 0, 100; 14
dw -100, 50, -50; 15
dw 100, 50, -50; 16
dw -100, 100,-130; 17
dw 100, 100,-130; 18
dw -100, 240,-200; 19
dw 100, 240,-200; 20
dw iterate+onscr+check,0,0,0,0,1,3,5,7,1
dw 0
dw 6
dw 25 dup (0)
dw both,0,0,3,0 ,1,3,17,19,1
dw both,0,0,3,0 ,17,3,15,17
dw both,0,0,3,0 ,15,3,5,13,15
dw both,0,0,3,0 ,13,5,11,13
dw both,0,0,3,0 ,11,5,9,11
dw both,0,0,3,0 ,9,5,7,9
dw iterate+onscr+check,0,0,0,0,2,8,6,4,2
dw 0
dw 6
dw 0,0,0,0,0,0,0,1
dw 17 dup (0)
dw both,0,0,9,0 ,1,3,17,19,1
dw both,0,0,9,0 ,17,3,15,17
dw both,0,0,9,0 ,15,3,5,13,15
dw both,0,0,9,0 ,13,5,11,13
dw both,0,0,9,0 ,11,5,9,11
dw both,0,0,9,0 ,9,5,7,9
dw 0,0,0,10,0,3,4,6,5,3
dw 0,0,0,2,0, 1,19,20,2,1
dw 0,0,0,2,0, 7,8,10,9,7
dw 0,0,0,3,0, 9,10,12,11,9
dw 0,0,0,4,0, 11,12,14,13,11
dw 0,0,0,5,0, 13,14,16,15,13
dw 0,0,0,6,0, 15,16,18,17,15
dw 0,0,0,7,0, 17,18,20,19,17
archmiddl3 dd -1
dd offset arch3 - offset $ - 4
arch3 dw 20
dw 10
dw 0,0,0,0,0,0,0,0
dw 17 dup (0)
dw -402, 240, 100 ; 1
dw -402, 240,-100 ; 2
dw -402,-240, 100 ; 3
dw -402,-240,-100 ; 4
dw 402,-240, 100 ; 5
dw 402,-240,-100 ; 6
dw 402, 240, 100 ; 7
dw 402, 240,-100 ; 8
dw 330, 100, 100 ; 9
dw 330, 100,-100 ; 10
dw 250, 50, 100 ; 11
dw 250, 50,-100 ; 12
dw 100, 0, 100 ; 13
dw 100, 0,-100 ; 14
dw -50, 50, 100 ; 15
dw -50, 50,-100 ; 16
dw -130, 100, 100 ; 17
dw -130, 100,-100 ; 18
dw -200, 240, 100 ; 19
dw -200, 240,-100 ; 20
dw iterate+onscr+check,0,0,0,0,1,3,5,7,1
dw 0
dw 6
dw 25 dup (0)
dw both,0,0,9,0 ,1,3,17,19,1
dw both,0,0,9,0 ,17,3,15,17
dw both,0,0,9,0 ,15,3,5,13,15
dw both,0,0,9,0 ,13,5,11,13
dw both,0,0,9,0 ,11,5,9,11
dw both,0,0,9,0 ,9,5,7,9
dw iterate+onscr+check,0,0,0,0,2,8,6,4,2
dw 0
dw 6
dw 0,0,0,0,0,0,0,1
dw 17 dup (0)
dw both,0,0,3,0 ,1,3,17,19,1
dw both,0,0,3,0 ,17,3,15,17
dw both,0,0,3,0 ,15,3,5,13,15
dw both,0,0,3,0 ,13,5,11,13
dw both,0,0,3,0 ,11,5,9,11
dw both,0,0,3,0 ,9,5,7,9
dw 0,0,0,10,0, 3,4,6,5,3
dw 0,0,0,2,0, 1,19,20,2,1
dw 0,0,0,3,0, 7,8,10,9,7
dw 0,0,0,4,0, 9,10,12,11,9
dw 0,0,0,5,0, 11,12,14,13,11
dw 0,0,0,6,0, 13,14,16,15,13
dw 0,0,0,7,0, 15,16,18,17,15
dw 0,0,0,8,0, 17,18,20,19,17
archmiddl4 dd -1
dd offset arch4 - offset $ - 4
arch4 dw 20
dw 10
dw 0,0,0,0,0,0,0,0
dw 17 dup (0)
dw 100, 240, 402 ; 1
dw -100, 240, 402 ; 2
dw 100,-240, 402 ; 3
dw -100,-240, 402 ; 4
dw 100,-240,-402 ; 5
dw -100,-240,-402 ; 6
dw 100, 240,-402 ; 7
dw -100, 240,-402 ; 8
dw 100, 100,-330 ; 9
dw -100, 100,-330 ; 10
dw 100, 50,-250 ; 11
dw -100, 50,-250 ; 12
dw 100, 0,-100 ; 13
dw -100, 0,-100 ; 14
dw 100, 50, 50 ; 15
dw -100, 50, 50 ; 16
dw 100, 100, 130 ; 17
dw -100, 100, 130 ; 18
dw 100, 240, 200 ; 19
dw -100, 240, 200 ; 20
dw iterate+onscr+check,0,0,0,0,1,3,5,7,1
dw 0
dw 6
dw 25 dup (0)
dw both,0,0,9,0 ,1,3,17,19,1
dw both,0,0,9,0 ,17,3,15,17
dw both,0,0,9,0 ,15,3,5,13,15
dw both,0,0,9,0 ,13,5,11,13
dw both,0,0,9,0 ,11,5,9,11
dw both,0,0,9,0 ,9,5,7,9
dw iterate+onscr+check,0,0,0,0,2,8,6,4,2
dw 0
dw 6
dw 0,0,0,0,0,0,0,1
dw 17 dup (0)
dw both,0,0,4,0 ,1,3,17,19,1
dw both,0,0,4,0 ,17,3,15,17
dw both,0,0,4,0 ,15,3,5,13,15
dw both,0,0,4,0 ,13,5,11,13
dw both,0,0,4,0 ,11,5,9,11
dw both,0,0,4,0 ,9,5,7,9
dw 0,0,0,10,0, 3,4,6,5,3
dw 0,0,0,2,0, 1,19,20,2,1
dw 0,0,0,7,0, 7,8,10,9,7
dw 0,0,0,6,0, 9,10,12,11,9
dw 0,0,0,5,0, 11,12,14,13,11
dw 0,0,0,4,0, 13,14,16,15,13
dw 0,0,0,3,0, 15,16,18,17,15
dw 0,0,0,2,0, 17,18,20,19,17
archend dd -1
dd offset arch2 - offset $ - 4
arch2 dw 21
dw 11
dw 0,0,0,0,0,0,0,0
dw 17 dup (0)
dw 402, 240,-100 ; 1
dw 402, 240, 100 ; 2
dw 402,-240,-100 ; 3
dw 402,-240, 100 ; 4
dw -402,-240,-100 ; 5
dw -402,-240, 100 ; 6
dw -402, 240,-100 ; 7
dw -402, 240, 100 ; 8
dw -330, 100,-100 ; 9
dw -330, 100, 100 ; 10
dw -250, 50,-100 ; 11
dw -250, 50, 100 ; 12
dw -100, 0,-100 ; 13
dw -100, 0, 100 ; 14
dw 50, 50,-100 ; 15
dw 50, 50, 100 ; 16
dw 130, 100,-100 ; 17
dw 130, 100, 100 ; 18
dw 200, 240,-100 ; 19
dw 200, 240, 100 ; 20
dw 200,-240, 100 ; 21
dw iterate+onscr+check,0,0,0,0,1,3,5,7,1
dw 0
dw 6
dw 25 dup (0)
dw both,0,0,0,0 ,1,3,17,19,1
dw both,0,0,0,0 ,17,3,15,17
dw both,0,0,0,0 ,15,3,5,13,15
dw both,0,0,0,0 ,13,5,11,13
dw both,0,0,0,0 ,11,5,9,11
dw both,0,0,0,0 ,9,5,7,9
dw iterate+onscr+check,0,0,0,0,2,8,6,4,2
dw 0
dw 6
dw 0,0,0,0,0,0,0,1
dw 17 dup (0)
dw both,0,0,1,0 ,20,17,19,20
dw both,0,0,1,0 ,17,20,15,17
dw both,0,0,1,0 ,15,20,5,13,15
dw both,0,0,1,0 ,13,5,11,13
dw both,0,0,1,0 ,11,5,9,11
dw both,0,0,1,0 ,9,5,7,9
dw 0,0,0,10,0, 3,4,6,5,3
dw 0,0,0,9,0, 1,19,20,2,1
dw 0,0,0,2,0, 1,2,4,3,1
dw 0,0,0,3,0, 7,8,10,9,7
dw 0,0,0,4,0, 9,10,12,11,9
dw 0,0,0,5,0, 11,12,14,13,11
dw 0,0,0,6,0, 13,14,16,15,13
dw 0,0,0,7,0, 15,16,18,17,15
dw 0,0,0,8,0, 17,18,20,19,17
column dd -1
dd offset colmn1 - offset $ - 4
colmn1 dw 16
dw 8
dw 0,0,0,0,0,0,0,0
dw 17 dup (0)
dw 32,-450,-80 ; 1
dw 80,-450,-32 ; 2
dw 80,-450, 32 ; 3
dw 32,-450, 80 ; 4
dw -32,-450, 80 ; 5
dw -80,-450, 32 ; 6
dw -80,-450,-32 ; 7
dw -32,-450,-80 ; 8
dw 32, 450,-80 ; 9
dw 80, 450,-32 ;10
dw 80, 450, 32 ;11
dw 32, 450, 80 ;12
dw -32, 450, 80 ;13
dw -80, 450, 32 ;14
dw -80, 450,-32 ;15
dw -32, 450,-80 ;16
dw 0,0,0,16*7+ 6,0, 1,8,16,9,1
dw 0,0,0,16*7+ 8,0, 2,1,9,10,2
dw 0,0,0,16*7+10,0, 3,2,10,11,3
dw 0,0,0,16*7+13,0, 4,3,11,12,4
dw 0,0,0,16*7+15,0, 5,4,12,13,5
dw 0,0,0,16*7+12,0, 6,5,13,14,6
dw 0,0,0,16*7+ 9,0, 7,6,14,15,7
dw 0,0,0,16*7+ 7,0, 8,7,15,16,8
align 16
ship1 dd 7500
dd offset hship1 - offset $ - 4
dd -1
dd offset lship1 - offset $ - 4
sbc equ 1 ; ship body colour
suc equ 4 ; ship underside colour
swc equ 5 ; ship window colour
sec equ 7 ; ship engine colour
lship1 dw 10 ; lo resolution ship
dw 6
dw 25 dup (0)
; x y z
dw 0, 18,188 ; 0
dw 0,-42,-68 ; 1
dw -48, 18,-82 ; 2
dw 48, 18,-82 ; 3
dw 34, 18,-14 ; 4
dw -34, 18,-14 ; 5
dw -100, 18,-22 ; 6
dw -74, 18,130 ; 7
dw 100, 18,-22 ; 8
dw 74, 18,130 ; 9
dw 0,0,0,16*sbc+10,0,3,4,2,3 ; engine
dw 0,0,0,16*sbc+10,0,6,8,7,3,6 ; top
dw 0,0,0,16*sbc+10,0,5,4,9,10,5
dw 0,0,0,16*sbc+10,0,2,1,3,2
dw 0,0,0,16*sbc+10,0,4,1,2,4
dw iterate,0,0,16*suc+12,0,6,3,7,8,6 ; underside
dw 0,2
dw 25 dup (0)
dw 0,0,0,16*suc+12,0,5,10,9,4,5
dw 0,0,0,16*suc+12,0,1,4,3,1
hship1 dw 18 ; hi resolution ship
dw 16
dw 25 dup (0)
; x y z
dw 0, 18,188 ; 0
dw 0, -4, 94 ; 1
dw -20, -4,-16 ; 2
dw 0,-30,-34 ; 3
dw 20, -4,-16 ; 4
dw 0,-42,-68 ; 5
dw -48, 18,-82 ; 6
dw 48, 18,-82 ; 7
dw 34, 18,-14 ; 8
dw -34, 18,-14 ; 9
dw -60, 18, 0 ;10
dw -80,-20, -6 ;11
dw -100, 18,-22 ;12
dw -74, 18,130 ;13
dw 80,-20, -6 ;14
dw 100, 18,-22 ;15
dw 74, 18,130 ;16
dw 60, 18, 0 ;17
dw 0,shade,0,16*sbc,0,10,3,2,1,10 ,0,0,0 ; front body
dw 0,shade,0,16*sbc,0,6,4,3,10,6 ,0,0,0
dw 0,shade,0,16*sbc,0,2,5,9,1,2 ,0,0,0
dw 0,shade,0,16*sbc,0,4,6,9,5,4 ,0,0,0
dw 0,wavey,0,16*swc,0,2,4,5,2 ; cockpit
dw 0,wavey,0,16*swc,0,3,4,2,3
dw 0,shade,0,16*sbc,0,18,15,17,18 ,0,0,0 ; right arm
dw 0,shade,0,16*sbc,0,17,15,16,17 ,0,0,0
dw 0,shade,0,16*sbc,0,15,6,8,16,15 ,0,0,0
dw 0,shade,0,16*sbc,0,9,6,15,18,9 ,0,0,0
dw 0,wavey,0,16*sec,0,8,6,7,8 ; engine
dw 0,shade,0,16*sbc,0,11,12,6,10,11 ,0,0,0 ; left arm
dw 0,shade,0,16*sbc,0,12,13,7,6,12 ,0,0,0
dw 0,shade,0,16*sbc,0,13,12,14,13 ,0,0,0
dw 0,shade,0,16*sbc,0,14,12,11,14 ,0,0,0
dw iterate,shade,0,16*suc,0,7,13,11,10,7 ,0,0,0 ; underside
dw 0
dw 4
dw 25 dup (0)
dw both,last,0,16*suc,0,14,11,13,14
dw both,last,0,16*suc,0,1,8,7,1
dw both,last,0,16*suc,0,9,18,16,8,9
dw both,last,0,16*suc,0,17,16,18,17
; template sequence for animation sequencing.
; note: all offsets are relative from original animation offset
; this way, animation sequences can be anywhere in memory and still run.
align 4
animation1:
j equ offset animation1
o equ offset
dw 6 ; number of headers
dw o lists-j
dw o sequences-j
lists:
dw o head0-j ; pointers to sequence headers
dw o head1-j
dw o head2-j
dw o head3-j
dw o head4-j
dw o head5-j
sequences:
dw o moveit0-j ; offsets to sequences
dw o moveit1-j
dw o moveit2-j
dw o moveit3-j
dw o moveit4-j
dw o moveit5-j
head0:
seq 0 ; headers to sequences
seq 1 ; eg do sequence 0, then 1, then 2...done
seq 2
seq 3
seq 4
done_all
head1:
done
seq 0
done
head2:
done
seq 1
done
head3:
done
seq 2
done
head4:
done
seq 3
done
head5:
seq 4
done
moveit0:
fade_off defpal ; set up screen
set_mode xmode,xactual,yactual,pages
initialize
text runscreen
text runtext
fade_on gamecolr
exit
moveit1: ; initialize objects and bitmaps
init_shape 0,ship1
init_shape 1,archmiddle
init_shape 2,archmiddl6
init_shape 3,archmiddl3
init_shape 4,archmiddl4
init_shape 5,archend
init_shape 6,column
init_shape 0,bigoildrum
;init_shape 1,bigoildrum
;init_shape 2,bigoildrum
;init_shape 3,bigoildrum
;init_shape 4,bigoildrum
;init_shape 5,bigoildrum
;init_shape 6,bigoildrum
;init_shape 7,bigoildrum
init_bitmap 0,sphere,15,15
init_bitmap 1,icon,15,15
exit
moveit2:
i=0
new_object
location 819200,-291840,742400+i
angle 0,49152,0
shape 5
xref_palette archsuden
on object
rept 7
i=i-800*256
new_object
location 819200,-291840,742400+i
no_rotation
shape 4
xref_palette archnorden
on object
endm
i=0
new_object
location 742400+i,-291840,-819200
no_rotation
shape 5
xref_palette archocten
on object
rept 7
i=i-800*256
new_object
location 742400+i,-291840,-819200
no_rotation
shape 1
xref_palette archnorden
on object
endm
i=0
new_object
location -819200,-291840,-742400+i
angle 0,16384,0
shape 5
xref_palette archwesten
on object
rept 7
i=i+800*256
new_object
location -819200,-291840,-742400+i
no_rotation
shape 2
xref_palette archnorden
on object
endm
i=0
new_object
location -742400+i,-291840,819200
angle 0,32768,0
shape 5
xref_palette archersten
on object
rept 7
i=i+800*256
new_object
location -742400+i,-291840,819200
no_rotation
shape 3
xref_palette archnorden
on object
endm
i=0
rept 8
i=i-800*256
new_object
location 819200+i,-115200,-819200
no_rotation
shape 6
on object
endm
i=0
rept 8
i=i+800*256
new_object
location -819200+i,-115200,819200
no_rotation
shape 6
on object
endm
i=0
rept 8
i=i+800*256
new_object
location 819200,-115200,819200-i
no_rotation
shape 6
on object
endm
i=0
rept 8
i=i+800*256
new_object
location -819200,-115200,-819200+i
no_rotation
shape 6
on object
endm
new_object
location 0,-200000,0
full_rotation
angle 0,0,0
shape 0
on object
camera
move 1100000,-400000,-4900000,380
wait_for lc,0
point_obj -1000000,-300000,-5100000,120
wait_for ac,0
move -1100000,1600000,-1900000,280
point_obj 0,0,0,280
wait_for lc,0
move 2200000,-100000,900000,180
point_obj 0,0,0,180
wait_for lc,0
move -2200000,-3100000,2900000,80
point_obj 0,0,0,80
wait_for lc,0
move 2200000, 2100000,-1900000,80
point_obj 0,0,0,80
wait_for lc,0
move -2200000,-100000,0,80
point_obj 0,0,0,80
wait_for lc,0
exit
moveit3:
; put your commands here.
exit
moveit4:
; put your commands here.
exit
moveit5:
; put your commands here.
exit